package com.wss.day10.api;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/5/7
 */
public class Test {
    public static void main(String[] args) {
        List<String> list1= Stream.of("a","b","c").map(s -> s.toUpperCase()).collect(Collectors.toList());
        System.out.println(list1);
        List<Integer> list2= Stream.of(1,2,3).map(s -> s+=3).collect(Collectors.toList());
        System.out.println(list2);
    }
}
